<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="sysDefault" />
<script
	src="${staticPath}/lib/jquery-datatables/1.9.4/js/jquery.dataTables.min.js"
	type="text/javascript"></script>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						parent.document.getElementById("versionFrame").height = document.body.scrollHeight;
					});

	function funform(url, target) {
		window.open(url, target);
	}

	function tr_onclick(id) {
		var url = $("#" + id + "url").text();
		//window.open("${contextPath}/"+url+"/"+id+"/view"); 
		parent.location.href = "${contextPath}/" + url + "/" + id + "/view";
	}
</script>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-14">
				<div class="panel panel-default">
					<tags:message content="${message}" />
					<table class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th>结算单号</th>
								<th>扣款项目</th>
								<th>应扣金额</th>
								<th>实扣金额</th>
								<th>备注</th>
								<th>结算类型</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${list}" var="paymentDetail">
								<tr>
									<td>${paymentDetail.billNo}</td>
									<td>${paymentDetail.debitItem}</td>
									<td>${paymentDetail.shouldDeductAmount}</td>
									<td>${paymentDetail.realDeductAmount}</td>
									<td>${paymentDetail.remarks}</td>
									<td><c:if test="${paymentDetail.statementType==1}">专柜对账</c:if>
										<c:if test="${paymentDetail.statementType==2}">自营代销</c:if> <c:if
											test="${paymentDetail.statementType==3}">自营经销</c:if></td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</body>
</html>